/*放置页面的公共样式*/


/*清除浏览器的默认样式*/
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Microsoft YaHei', sans-serif;

}

/*设置页面高度*/
html,body {
    background: linear-gradient(135deg,  #99dbd0 10%,#cbeaf2  100%);
    height: 100vh;
    overflow: hidden;
}


/*设定导航栏的样式*/
.nav {
    height: 50px;
    background: linear-gradient(135deg, #7eb4b8 0%, #5a9ca0 100%);
    color: #fffcf1;

    /*使用弹性布局,让导航栏内部元素,垂直方向居中*/
    display: flex;
    align-items: center;
     /*让里面的元素距离左侧边框,有点间距*/
    justify-content: space-between;
    padding: 0 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 100;
}


/* 导航栏品牌样式 */
.nav-brand {
    display: flex;
    align-items: center;
    font-size: 20px;
    font-weight: bold;
}

/* 使用SVG图标的样式 */
.nav-brand svg {
    width: 24px;
    height: 24px;
    margin-right: 10px;
}

/* 导航栏菜单样式 */
.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    margin-left: 20px;
}

.nav-menu a {
    color: #fffcf1;
    text-decoration: none;
    font-size: 14px;
    transition: opacity 0.3s;
}

.nav-menu a:hover {
    opacity: 0.8;
}

/* 加载动画样式 */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #99dbd0 10%, #cbeaf2 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-top: 5px solid white;
    border-radius: 50%;
    animation: spin 1.5s linear infinite;
    margin-bottom: 20px;
}

.loading-text {
    color: white;
    font-size: 20px;
    font-weight: 600;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}